import 'package:enterprise_v6_app/app/components/custom_refresh.dart';
import 'package:enterprise_v6_app/app/core/core.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standardization_entity.dart';
import 'package:enterprise_v6_app/app/modules/application/standardization/common.dart';
import 'package:enterprise_v6_app/app/modules/application/standardization/pages/chemistry/pages_ctrl.dart';

/// 危险化学品
class StandardizationChemistryView extends StatelessWidget {
  StandardizationChemistryView({super.key});

  final ctrl = Get.put(StandardizationChemistryController());

  @override
  Widget build(BuildContext context) {
    return GetBuilder(
      init: ctrl,
      builder: (_) {
        return Container(
          color: AppColors.Pure_gray_bg,
          padding: EdgeInsets.only(
            top: 12.w,
            left: 14.w,
            right: 14.w,
          ),
          child: _buildBody(),
        );
      },
    );
  }

  Widget _buildBody() {
    return CustomEasyRefreshList<StandardizationEntity>(
      isShowSearch: true,
      dataLoad: ctrl.getPages,
      itemBuilder: StandardizationCommon.card,
    );
  }
}
